package com.feib.stms.batch.service;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.stms.batch.dao.MailQueueJdbcDao;
import com.feib.stms.batch.domain.MailQueue;




@Service("mailQueueService")
public class MailQueueService implements Serializable  {

	private static final long serialVersionUID = -5402856538366127572L;
	@Resource(name="mailQueueDao")
    private MailQueueJdbcDao mailQueueDao;

	public MailQueue getUnSendMail() {
		
		return mailQueueDao.findUnSendMail();
	}

	public MailQueue queryByPk(Long mailQueuePk) {
		
		return mailQueueDao.queryByPk(mailQueuePk);
	}

	public int updateMailStatus(MailQueue mailQueue) {
		return mailQueueDao.updateMailStatus(mailQueue);
	} 
    
   
  

}
